package com.luzhikun.servlet_1;

import javax.servlet.*;
import java.io.IOException;

public class ServletContext implements Servlet {

    public ServletContext() {
        System.out.println("构造器被加载");
    }

    private ServletConfig config;

    @Override
    public void init(ServletConfig servletConfig) throws ServletException {
        this.config = servletConfig;
    }

    @Override
    public ServletConfig getServletConfig() {
        return config;
    }


    /*
     * 获取
     *
     * */
    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {

    }

    @Override
    public String getServletInfo() {
        return null;
    }

    @Override
    public void destroy() {

    }
}
